home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13377 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 67 72 | 65 65 6e 2e 77 65 65 67 |Path: gr|een.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |g.c.Subj|ect: Re:|
|00000080| 20 49 20 6e 65 65 64 20 | 72 61 6e 64 6f 6d 20 6e | I need |random n|
|00000090| 75 6d 62 65 72 20 66 75 | 6e 63 74 69 6f 6e 20 74 |umber fu|nction t|
|000000a0| 68 61 74 20 72 65 74 75 | 72 6e 73 20 61 20 6e 75 |hat retu|rns a nu|
|000000b0| 6d 62 65 72 20 62 65 74 | 77 65 65 6e 20 78 20 61 |mber bet|ween x a|
|000000c0| 6e 64 20 69 20 3f 0a 44 | 61 74 65 3a 20 53 61 74 |nd i ?.D|ate: Sat|
|000000d0| 2c 20 36 20 41 70 72 20 | 31 39 39 36 20 31 37 3a |, 6 Apr |1996 17:|
|000000e0| 34 37 3a 31 37 20 2d 30 | 36 30 30 0a 4f 72 67 61 |47:17 -0|600.Orga|
|000000f0| 6e 69 7a 61 74 69 6f 6e | 3a 20 55 6e 69 76 65 72 |nization|: Univer|
|00000100| 73 69 74 79 20 6f 66 20 | 49 6f 77 61 2c 20 49 6f |sity of |Iowa, Io|
|00000110| 77 61 20 43 69 74 79 2c | 20 49 41 2c 20 55 53 41 |wa City,| IA, USA|
|00000120| 0a 44 69 73 74 72 69 62 | 75 74 69 6f 6e 3a 20 77 |.Distrib|ution: w|
|00000130| 6f 72 6c 64 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |orld.Mes|sage-ID:|
|00000140| 20 3c 50 69 6e 65 2e 41 | 33 32 2e 33 2e 39 31 2e | <Pine.A|32.3.91.|
|00000150| 39 36 30 34 30 36 31 37 | 34 33 31 31 2e 31 39 35 |96040617|4311.195|
|00000160| 36 33 49 2d 31 30 30 30 | 30 30 40 67 72 65 65 6e |63I-1000|00@green|
|00000170| 2e 77 65 65 67 2e 75 69 | 6f 77 61 2e 65 64 75 3e |.weeg.ui|owa.edu>|
|00000180| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 33 31 |.Referen|ces: <31|
|00000190| 36 36 43 39 34 32 2e 32 | 44 38 40 63 63 69 73 2e |66C942.2|D8@ccis.|
|000001a0| 63 6f 6d 3e 0a 4e 4e 54 | 50 2d 50 6f 73 74 69 6e |com>.NNT|P-Postin|
|000001b0| 67 2d 48 6f 73 74 3a 20 | 67 72 65 65 6e 2e 77 65 |g-Host: |green.we|
|000001c0| 65 67 2e 75 69 6f 77 61 | 2e 65 64 75 0a 4d 69 6d |eg.uiowa|.edu.Mim|
|000001d0| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|000001e0| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 54 45 58 |ontent-T|ype: TEX|
|000001f0| 54 2f 50 4c 41 49 4e 3b | 20 63 68 61 72 73 65 74 |T/PLAIN;| charset|
|00000200| 3d 55 53 2d 41 53 43 49 | 49 0a 58 2d 53 65 6e 64 |=US-ASCI|I.X-Send|
|00000210| 65 72 3a 20 72 6f 62 69 | 6e 73 6f 6e 40 67 72 65 |er: robi|nson@gre|
|00000220| 65 6e 2e 77 65 65 67 2e | 75 69 6f 77 61 2e 65 64 |en.weeg.|uiowa.ed|
|00000230| 75 0a 49 6e 2d 52 65 70 | 6c 79 2d 54 6f 3a 20 3c |u.In-Rep|ly-To: <|
|00000240| 33 31 36 36 43 39 34 32 | 2e 32 44 38 40 63 63 69 |3166C942|.2D8@cci|
|00000250| 73 2e 63 6f 6d 3e 20 0a | 0a 4f 6e 20 53 61 74 2c |s.com> .|.On Sat,|
|00000260| 20 36 20 41 70 72 20 31 | 39 39 36 2c 20 42 69 6c | 6 Apr 1|996, Bil|
|00000270| 6c 20 4c 75 6e 64 20 77 | 72 6f 74 65 3a 0a 0a 3e |l Lund w|rote:..>|
|00000280| 20 49 20 6e 65 65 64 20 | 72 61 6e 64 6f 6d 20 6e | I need |random n|
|00000290| 75 6d 62 65 72 20 66 75 | 6e 63 74 69 6f 6e 20 74 |umber fu|nction t|
|000002a0| 68 61 74 20 72 65 74 75 | 72 6e 73 20 61 20 6e 75 |hat retu|rns a nu|
|000002b0| 6d 62 65 72 20 62 65 74 | 77 65 65 6e 20 78 20 61 |mber bet|ween x a|
|000002c0| 6e 64 20 69 20 3f 0a 3e | 20 53 6f 6d 65 74 68 69 |nd i ?.>| Somethi|
|000002d0| 6e 67 20 6c 69 6b 65 20 | 3a 0a 3e 20 69 6e 74 20 |ng like |:.> int |
|000002e0| 72 61 6e 64 6f 6d 65 72 | 28 69 6e 74 20 78 20 2c |randomer|(int x ,|
|000002f0| 20 69 6e 74 20 69 29 2e | 0a 3e 20 0a 3e 20 41 6e | int i).|.> .> An|
|00000300| 64 20 72 65 74 75 72 6e | 73 20 61 20 72 61 6e 64 |d return|s a rand|
|00000310| 6f 6d 20 6e 75 6d 62 65 | 72 20 20 62 65 74 77 65 |om numbe|r betwe|
|00000320| 65 6e 20 78 20 61 6e 64 | 20 69 2e 0a 0a 20 20 54 |en x and| i... T|
|00000330| 68 65 20 73 69 6d 70 6c | 65 20 6f 6e 65 20 28 77 |he simpl|e one (w|
|00000340| 68 69 63 68 20 61 73 73 | 75 6d 65 73 20 78 20 3c |hich ass|umes x <|
|00000350| 3d 20 69 29 3a 0a 0a 20 | 20 23 69 6e 63 6c 75 64 |= i):.. | #includ|
|00000360| 65 20 3c 73 74 64 6c 69 | 62 2e 68 3e 0a 0a 20 20 |e <stdli|b.h>.. |
|00000370| 2f 2a 20 73 72 61 6e 64 | 28 29 20 63 61 6c 6c 65 |/* srand|() calle|
|00000380| 64 20 73 6f 6d 65 77 68 | 65 72 65 20 75 70 20 68 |d somewh|ere up h|
|00000390| 65 72 65 20 2a 2f 0a 0a | 20 20 69 6e 74 20 52 61 |ere */..| int Ra|
|000003a0| 6e 64 6f 6d 65 72 28 69 | 6e 74 20 78 2c 20 69 6e |ndomer(i|nt x, in|
|000003b0| 74 20 69 29 0a 20 20 7b | 0a 20 20 20 20 20 20 72 |t i). {|. r|
|000003c0| 65 74 75 72 6e 20 72 61 | 6e 64 28 29 20 25 20 28 |eturn ra|nd() % (|
|000003d0| 78 20 2d 20 69 20 2b 20 | 31 29 20 2b 20 78 3b 0a |x - i + |1) + x;.|
|000003e0| 20 20 7d 0a 0a 20 20 48 | 6f 77 65 76 65 72 2c 20 | }.. H|owever, |
|000003f0| 73 65 65 20 74 68 65 20 | 46 41 51 20 28 72 74 66 |see the |FAQ (rtf|
|00000400| 6d 2e 6d 69 74 2e 65 64 | 75 20 2f 70 75 62 2f 75 |m.mit.ed|u /pub/u|
|00000410| 73 65 6e 65 74 2f 63 6f | 6d 70 2e 6c 61 6e 67 2e |senet/co|mp.lang.|
|00000420| 63 2f 29 20 66 6f 72 20 | 70 6f 73 73 69 62 6c 65 |c/) for |possible|
|00000430| 0a 70 69 74 66 61 6c 6c | 73 20 61 73 73 6f 63 69 |.pitfall|s associ|
|00000440| 61 74 65 64 20 77 69 74 | 68 20 75 73 69 6e 67 20 |ated wit|h using |
|00000450| 74 68 65 20 6d 6f 64 75 | 6c 75 73 20 6f 70 65 72 |the modu|lus oper|
|00000460| 61 74 6f 72 20 77 69 74 | 68 20 72 61 6e 64 28 29 |ator wit|h rand()|
|00000470| 2e 0a 0a 2f 2a 2a 4a 61 | 6d 65 73 20 52 6f 62 69 |.../**Ja|mes Robi|
|00000480| 6e 73 6f 6e 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |nson****|********|
|00000490| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 20 20 20 20 20 |********|*** |
|000004a0| 20 20 20 20 20 20 20 0a | 20 20 22 49 66 20 61 20 | .| "If a |
|000004b0| 66 61 74 61 6c 20 65 72 | 72 6f 72 20 6f 63 63 75 |fatal er|ror occu|
|000004c0| 72 73 2c 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |rs, the |program |
|000004d0| 73 68 6f 75 6c 64 20 6e | 6f 74 20 62 65 20 61 6c |should n|ot be al|
|000004e0| 6c 6f 77 65 64 20 74 6f | 20 63 6f 6e 74 69 6e 75 |lowed to| continu|
|000004f0| 65 2e 22 0a 20 2d 2d 20 | 4f 72 61 63 6c 65 20 50 |e.". -- |Oracle P|
|00000500| 72 6f 2a 43 20 55 73 65 | 72 27 73 20 47 75 69 64 |ro*C Use|r's Guid|
|00000510| 65 20 20 20 20 20 20 20 | 20 20 2a 2a 2a 2a 2a 2a |e | ******|
|00000520| 2a 2a 2a 2a 2a 2a 2a 6a | 61 6d 65 73 2d 72 6f 62 |*******j|ames-rob|
|00000530| 69 6e 73 6f 6e 40 75 69 | 6f 77 61 2e 65 64 75 2a |inson@ui|owa.edu*|
|00000540| 2a 2f 0a 0a 0a 0a | |*/.... | |
+--------+-------------------------+-------------------------+--------+--------+